public class Book {
    private String bookName;
    private String author;
    private String publisher;
    private double price;

    // 无参构造方法
    public Book() {}

    // 有参构造方法
    public Book(String bookName, String author, String publisher, double price) {
        this.bookName = bookName;
        this.author = author;
        this.publisher = publisher;
        this.price = price;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getBookInfo() {
        return "书名：" + bookName + ", 作者：" + author + ", 出版社：" + publisher + ", 价格：" + price;
    }
}
